Tip: Type Nesting Keeps Packages Tidy
When your class has a single use only, make it inner
If your reusable type is coupled to another type, consider making it a public or protected member

      interface Collection {
	...
	Collection.View view(Predicate pr);

	interface View extends Collection {
	  ...
	}
      }
       		
       		

Return to Tracks